package com.example.mbl.dao;

import com.example.mbl.entity.Patent;
import com.example.mbl.result.business.PatentPageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PatentMapper {
    List<Patent> searchItemsByKeyWord(String keyword);

    int deleteByPrimaryKey(String patentid);

    int insert(Patent record);

    int insertSelective(Patent record);

    Patent selectByPrimaryKey(String patentid);

    int updateByPrimaryKeySelective(Patent record);

    int updateByPrimaryKey(Patent record);

    List<PatentPageResult> getPatentList(@Param("year") String year,
                                         @Param("start") int start,
                                         @Param("pagesize") int pagesize);
}